-- GENERATED SPELL FOR [Flamewaker Protector] --


function spell0_12119(pUnit, Event) --@Cleave,n/a--
pUnit:FullCastSpellOnTarget(20605,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_12119', 0, 1)
end

function spell1_12119(pUnit, Event) --@Dominate Mind,n/a--
pUnit:FullCastSpellOnTarget(20604,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_12119', 17000, 1)
end

function Sorts_12119(pUnit, Event)
local choix_sorts_12119 = math.random(0, 1)
if choix_sorts_12119 == 0 then
pUnit:RegisterEvent('spell0_12119', 1, 1)
end
if choix_sorts_12119 == 1 then
pUnit:RegisterEvent('spell1_12119', 1, 1)
end
end

function mob12119_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_12119', math.random(1500, 3000), 1)
end

function mob12119_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob12119_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob12119_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(12119, 1, 'mob12119_Action')
RegisterUnitEvent(12119, 2, 'mob12119_Leave')
RegisterUnitEvent(12119, 3, 'mob12119_Kill')
RegisterUnitEvent(12119, 4, 'mob12119_Die')
